package bundle

import (
	"context"
	"gitee.com/kmyss/gf-ex/yscmd"
)

type FlagBundlePathBuilder struct {
	yscmd.FlagBuilderCore
}

func (b *FlagBundlePathBuilder) Init(ctx context.Context, group ...string) {
	b.FlagBuilderCore.Init(ctx, group...)
	b.F.Short = "p"
	b.F.Long = "path"
	b.F.Description = `
		二进制文件的完整路径。
        （绝对路径或相对路径均可）`
	b.F.DefaultValue = nil
}

func FlagBundlePath(ctx context.Context, group ...string) *yscmd.Flag {
	build := &FlagBundlePathBuilder{}
	build.Init(ctx, group...)
	return build.Flag()
}
